﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataStructs
{

    // class used to store linkedList datastructures
    class Node
    {
        private Object data;
        private Node next;

        public Node()
        {
            data = null;
            next = null;

        }

        public Node(Object o)
        {

            data = o;
            next = null;
        }

        public Node(Object o, Node n)
        {
            data = o;
            next = n;

        }

        public void setNextNode(Node n)
        {
            next = n;

        }

        public Node getNextNode()
        {
            return this.next;
        }

        public void setData(Object o)
        {
            data = o;
        }

        public Object getData()
        {
            return data;
        }



    }

   
}
